home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Business Master (3rd Edition)
/
The Business Master (3rd Edition).iso
/
files
/
cataging
/
vcrdbase
/
vcrdbase.doc
< prev
Wrap
Text File
|
1980-01-01
|
17KB
|
330 lines
+-------------------+
| V C R D B A S E |
+-------------------+
Video Cassette Recorder Movie Data Base
by
Doctor Disk Drive
Written in TURBO Pascal v3.01a
USER'S MANUAL
Page 1
Contents
VCRDBASE
Table of contents . . . . . . . . . . . . . . . . . . . . 1
Requirements . . . . . . . . . . . . . . . . . . . . . . 1
Description . . . . . . . . . . . . . . . . . . . . . . . 2
Design & Architecture . . . . . . . . . . . . . . . . . . 3
Commands . . . . . . . . . . . . . . . . . . . . . . . . 3
Init . . . . . . . . . . . . . . . . . . . . . . . . 3
Add . . . . . . . . . . . . . . . . . . . . . . . . . 4
Change . . . . . . . . . . . . . . . . . . . . . . . 4
Note on Closest Match . . . . . . . . . . . . . . . . 4
Delete . . . . . . . . . . . . . . . . . . . . . . . 4
Search . . . . . . . . . . . . . . . . . . . . . . . 5
Print Labels . . . . . . . . . . . . . . . . . . . . 5
Exit . . . . . . . . . . . . . . . . . . . . . . . . 6
Backing Up Storage Files . . . . . . . . . . . . . . 6
INTRODUCTION & HARDWARE REQUIREMENTS:
VCRDBASE is a program used by a person who needs an easy and
structured way of keeping track of all the movies he or she has. VCRDBASE
requires an IBM PC with 64K, and if you wish to use the Print-Out options,
a standard printer which is logically LPT1:. When the program outputs to
the printer, it writes to the LST: device so if there seems to be some
trouble with your printouts, use the MODE program in DOS to assign logical
names or re-direct output as needed.
To start or invoke VCRdBase, at the DOS prompt, type: VCRDBASE and
press return. It will load up and take off.
Please be aware that I have not made VCRDBASE trap out for
incorrect data types. What this means is, if you enter a alpha-numerical
answer to a integer or real prompt, The program will die. This is
actually safer as it is, rather than me turning of type checking. If
it crashes during data entry, just start the program up again and
try again, being more careful at the keyboard.
I understand that this exact same package could be written on a
data base program like PC-File, or others in that neighborhood. When I
wrote this package, I didn't know those packages could do this kind of
thing. Oh well. I guess VCRDBASE is still useful to someone who hasn't
bought and learned a database program yet (like me!)
Page 2
DESCRIPTION:
VCRDBASE is a data base written in Turbo Pascal for the IBM PC.
it can be used to keep record of a personal video library by the reference
of the following data elements:
Movie Name String[20]
Movie Publisher String[20]
Movie Star String[20]
Movie Style (Horror,Comedy,Action,Drama,Misc.)
Movie Sub-Style (Horror,Comedy,Action,Drama,None)
Tape Number Integer
Counter Starter Number Integer
Counter End Number Integer
Tape Speed (S,L,E)
Hard Copy Verification Boolean
It is usually a good idea to exclude the prefix on most movies of "The"
so as not to mess up the sorting. If the name is too long for 20 characters,
it is also a good idea to try to use the useful words in the name to make up
the entry. An example would be "TRAIL OF THE DEAD RABBIT". This is 24
characters long. A meaningful shortening of this name would be something
like, "TRAIL, DEAD RABBIT".
Publisher is usually what you find at the beginning of the movie. I
really can't mention any for the sake of copyrights. The tape number is
purely an integer so those of you who use the letters included in many types
of tapes, are out of luck until I find a reason to turn an integer into a
string throughout the entire package.
Counter Starter Number is usually in the range of 0 to 5800 telling where
along the tape, the movie starts. This is if you use more than 1 movie per
tape like me. Counter End Number is where the movie ends. You may start
feeling that you don't want to include this, but it is used in making labels.
Tape speed should be inputted as the letter 'S','L','E' as you have it set.
When is is output, the letter you input will precede a letter "p" so don't
try to input the whole thing, just what is necessary.
Hard Copy Verification is a very handy feature I have decided to include
in this package. It allows the person who is managing the dbase to set a
little flag in the movie record that prevents that record from being printed
out when the user requests a print of any movies. This is useful for keeping
soap opera's, documentaries, or personal tapings apart from the list of movies,
or keeping certain movies from appearing on the printout for the sake of
privacy. This flag can be surpassed if the user enters a password to do so.
This password may be changed if the changer knows the old password. Be aware
that this flag has no effect on screen listings but if I receive enough
requests for such an option, I will include a Visual Verification Flag that
requires a password from the user, in order to see the movie.
Page 3
DESIGN & ARCHITECTURE:
VCRDBASE is quite unique in that it uses a Linked List data structure for
record management and sorting. In this data structure, the Header file,
HEADER.DAT, contains the record number of the first alphabetical movie. That
movie (the first alphabetical) contains a forward link and a backward link.
The forward link contains the record number of the next alphabetical movie and
the backward link contains the record number of the preceding record (or in
this case, 0 because there is no previous record) Adds are made by placing
the record in the next available file position, and then searching where it
belongs among the records, and adjusting the links to include the new record.
It will properly alphabetize all your movies and is remarkably fast in sorting
compared to many sorting techniques. The data file, DATAFILE.DAT, contains all
the movie records and neither of the files should be renamed, or physically
edited because they are both random access files that are accessed by key only.
The Header file also contains the default values for printing labels.
You can change these values in the PRINT LABELS option.
Do not worry if you end up waiting up to 10 seconds for a record to
be written, when you reach up to entry number 100. If this package were
created without the Linked List data structure, you would be waiting up to 30
to 45 seconds for an entry to be written, and the list stay sorted. I dare to
say that a boolean sort might be faster, but if you've got a hard disk, what's
a few hundredths of a second?
COMMANDS
At the Main Menu, (the one with the big letters) there are different
selections you may choose. Be wary that this prompt does not require a
carriage return. Many prompts in this package are like that, and many aren't.
INITIALIZE:
One such command not mentioned on the Main Menu, is the Initialize
command. This is a hidden command that allows the user to initialize the two
data files used by the package. You shouldn't have to do this because I have
already included empty data files on this disk for you but in the case that you
happen to lose those files, or mess them up severely, or delete them by
mistake, you can always revert to this option to make new ones. (WARNING:
this option will DELETE any old versions of these data files, so know what you
want to do before you do it.) When the computer asks you, "Do you wish to
Initialize the files? " your answer must be "yes", letter for letter. For
those of you who like to take me literally, the answer string consists of
ascii: chr$(121) chr$(101), and chr$(115). I am sorry that I have to revert
to such measures to make myself clear, but you asciied for it! Any other
answer to this prompt will cause the computer to ignore you and go back to the
Main Menu.
Page 4
ADD
If you wish to make an entry into the data base, Use this option to
do so. The first question checks if you really want to add something. If
so, answer the following prompts, making sure that what you input doesn't
exceed the maximum size for that field. After you have input all needed
information, the computer will display your entry in an output template, and
ask you if you want to keep it. If you do keep it, the computer will find a
place for it, and tell you at which file position, the movie was written. This
is a good way of finding out how large your file is becoming.
CHANGE
If you happen to make a mistake that you don't catch at entry time,
you can go back and change any element of a movie except the name and
hard copy verification. In order to change the name or the Hc-Verify, you
have to delete the entry from the file, and re-enter it. Otherwise, if it
was just a star actor/actress whose name you misspelled, or a tape number you
got wrong, just follow the prompts and everything will be changed as requested.
When selecting a movie to be changed, you must produce the name of that movie
exactly as it is in the file, or the computer will tell you that it cannot
find the movie you are looking for. If you don't remember the name, you can
use options 1-4 in Search, to find it on the screen.
( Note: Installed in the CHANGE, DELETE, and SEARCH TITLE options, is what is
known as the Closest Match option. If an exact match is not found in the file,
the computer will ask you if you wish to search for the closest match. If you
say Y for yes, the computer will then search for any uppercase matches (titles
get transformed to uppercase) and matches of the first two characters of the
title. After the computer finds a match, It will ask you if you intend to
continue searching. If so, It will continue until it passes any alphabetical
match possibilities. )
DELETE
If you record over a movie and wish to delete it from the data base,
you can select the Delete option. You will prompted for the name of the movie
and as above in the Change option, the name must be exact. If the computer
can find the movie, it will display it for you, and then ask if you really want
to delete it. If so, It will be deleted and all will be peachy.
Page 5
SEARCH
In this option, you have a world of things to do with your data. You
can: 1) Have any movie displayed in front of you in an output template
(search by Title) 2) Have any group of movies displayed in front of you in
output templates, (Search by Group "Horror, Comedy, Action, Drama") 3) Output
all movies in the standard output template (Display all movies) 4) Display a
listing of all movies, (Display List of All Movies) 5) Print a list of a group
of movies, 6) Print a List of All movies, and 7) Print a full dissection of
the Data file and Header file. The last option is a diagnostics option that
you will rarely use. It requires a password for access because it will output
all information regardless of nature. The password for option seven is
"CROSSCARPDIGMAREAPPLES". I got that from a friend at work who was telling a
very bizarre joke.
A final option, (8) is the option to change the Master Pass Code,
requires the knowledge of the original passcode. It is an integer no greater
than 32767 and no less than -32768. The original passcode is 0. Be sure to
change this immediately as if someone changes it, you must initialize all your
files to get control of it again. The passcode is not visible when typed to
help in the privacy department.
PRINT LABELS
This option took some serious work. This allows you to print out
labels for your tapes on standard 9/10" x 3.5" labels or bigger. In
accommodating for all kinds of labels, I have allowed the option to configure
your system for they type of labels you have. You can set the number of
labels per line, label separation, left column indentation, and
the header that appears on the top of each label. The labels allow anywhere
from 1 to three movies per tape.
When you start this command, you are asked if you wish to create a
master tape list file. You will also be advised if you should or not. If you
press Y, The computer will then generate a dual-link file listing all tapes in
the VCRdBase. 100 entries in the Data Base take about 30 seconds to process.
If you don't, the computer will use the current Tape list file called
TAPELIST.DAT. If this file is not up to date, or does not exist, you can
probably expect the computer to get lost in la la land, or crash with an I/O
Error 01 or FF (File not found).
After this, you are asked to specify if you want to print one label,
a group of labels, or all labels.
If you choose One label, you will be prompted for the tape number, and
then asked to verify the Label Print Settings (See below). Afterwards,
the label will be printed.
If you choose Group labels, You will be given a grid of 24 spots where
you can select up to 24 tapes to be printed. The program gives you
instructions on how to enter the values. Afterwards, you will be asked to
verify the Label Print Settings (See below). Soon after, the labels will
be printed out.
Page 6
If you choose All labels, you will be asked to verify the Label Print
Settings. These settings are, Left Indentation: Number of spaces that the
labels are indented on the left edge. Label Separation: Number of spaces
between each label. Number of Labels per Line: What is says. Header String:
Message printed on the top of the label. Afterwards, the labels will begin to
print.
The labels will look like this:
____________________________Header String
/
VCRDBASE Library 1 <-----Tape Number
-------------------------------
Rodzina Eats New York 0-3091
Kroika! 3100-4936 <-Counter End Number
\ \_________Counter Start Number
\___________________________Movie Name
EXIT
After you are finished, select the EXIT command at the main menu
to quit the program and return to DOS. It is recommended that you place
a copy of COMMAND.COM on the disk this program is on. It replaces the file
when it is invoked, like all TURBO Pascal programs do.
BACKING-UP STORAGE FILES
A good idea to implement in the use of this package is a batch file
that activates this program, and then makes backup copies of the latest
data files, or if you are really precautious, you can make it back up the
data files before the program is invoked. Such a batch file would look like
this:
VCRDBASE or Copy *.dat *.bak
Copy *.dat *.bak VCRDBASE
Such a practice is handy in case you are accident-prone, or are a
hunt and peck typist, trying to learn not to look at the keyboard.
FINAL NOTES ON COMPATIBILITY
I have been informed that this package doesn't work on an AT&T
computer. Evidentally, a file read request is bogus or something to that
effect. All I can say is; I guess AT&T is not quite as compatible as it
claimed to be.
If you find this package worth while, (or just want to scavenge it
for some select routines) send $10.00 to the below address for a disk
containing the full source code in Turbo Pascal.
Drive Industries.
4104 Garrett Pl.
Colorado Springs, CO 80907